<?php
	
	$username=$_POST["txtTenTaiKhoan"];
	$password=$_POST["txtMatKhau"];
	$email=$_POST["txtEmail"];
	$hoten=$_POST["txtHoTen"];
	$ngay=$_POST["ngay"];
	$thang=$_POST["thang"];
	$nam=$_POST["nam"];
	$gioitinh=$_POST["cmbGioiTinh"];
	$diachi=$_POST["txtDiaChi"];
	$dienthoai=$_POST["txtDienThoai"];
	include_once("../../Code/DataProvider.php");
		
	$sql="INSERT INTO `nguoidung`(`tendangnhap`, `maloainguoidung`, `matkhau`, `email`, `ngaysinh`, `tenguoidung`, `gioitinh`, `diachi`, `dienthoai`) VALUES ('".$username."',2,'".$password."','".$email."','".$nam."-".$thang."-".$ngay."','".$hoten."','".$gioitinh."','".$diachi."','".$dienthoai."')";

	DataProvider::ExecuteQuery($sql);
	header("location:../../index.php");
?>

